<!-- The file upload form used as target for the file upload widget -->
<?php echo CHtml::beginForm($this -> url, 'post', $this -> htmlOptions);?>
<?php 
if (isset($this->model->producto_id)){
	echo CHtml::hiddenField('producto_id', $this->model->producto_id);
}
 


echo CHtml::hiddenField('xupload-form-sent', 0);
?>

<div class="row fileupload-buttonbar">
	<div class="span7">
		<!-- The fileinput-button span is used to style the file input field as button -->
		<span class="btn btn-success fileinput-button"> <i class="icon-plus icon-white"></i>
<!-- 		<span>Seleccionar Fotos</span> -->
		<button name="seleccionar_fotos" class="button">Seleccionar Fotos</button>
			<?php
            if ($this -> hasModel()) :
                echo CHtml::activeFileField($this -> model, $this -> attribute, $htmlOptions) . "\n";
            else :
                echo CHtml::fileField($name, $this -> value, $htmlOptions) . "\n";
            endif;
            ?>
		</span>
		&nbsp;
		<button type="submit" class="btn btn-primary start button">
			<i class="icon-upload icon-white"></i>
			<span>Subir Fotos Seleccionadas</span>
		</button>
	</div>
	<div class="span5">
		<!-- The global progress bar -->
		<div class="progress progress-success progress-striped active fade">
			<div class="bar" style="width:0%;"></div>
		</div>
	</div>
</div>
<!-- The loading indicator is shown during image processing -->
<div class="fileupload-loading"></div>
<br>
<!-- The table listing the files available for upload/download -->
<table class="table table-striped">
	<tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
</table>
<?php echo CHtml::endForm();?>
